package vip.pwztx.constant;

/**
 * 结果代码枚举类
 *
 * @author zhoubaohua
 * @date 2020/8/28
 */
public enum ResultCode {
    /**
     * 请求成功
     */
    SUCCESS(2000,"请求成功"),
    /**
     * 请求失败
     */
    ERROR(5000,"请求失败"),
    /**
     * 请求不受支持
     */
    NOT_SUPPORT(4000,"请求不受支持"),
    /**
     * 缺少参数
     */
    LESS_PARAMS(3000,"缺少参数");

    int code;

    String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
